import PrimaryView from '@/views/PrimaryView.vue'
import SchoolFriendClub from '@/views/PrimaryView/SchoolFriendClub.vue'
import SchoolContent from '@/views/PrimaryView/SchoolContent.vue'
import SchoolContentDetails from '@/views/PrimaryView/SchoolContentDetails.vue'

const primaryRoutes = [
    {
        path: '/',
        name: 'home',
        component: PrimaryView,
    },{
        path: '/SchoolContent',
        name: 'SchoolContent',
        component: SchoolContent,
    }, {
        path: '/SchoolContentDetails',
        name: 'SchoolContentDetails',
        component: SchoolContentDetails,
    },{
        path: '/SchoolFriendClub',
        name: 'SchoolFriendClub',
        component: SchoolFriendClub,
    },
];
// pageType 1 为文章列表，2为文章详情 3 图文 4领导 6 校友会 7菁菁校园  category 为文章分类 type 为文章类型
const pMenuItems = [
    {
        name: '学校概况',
        link: 'SchoolContent',
        children: [
          { name: '学校简介', link: 'SchoolContent?pageType=2&category=yzjj&type=xxgk&haveContent=true' },
          { name: '历任领导', link: 'SchoolContent?pageType=4&category=lrld&type=xxgk' },
          { name: '现任领导', link: 'SchoolContent?pageType=4&category=xrld&type=xxgk' },
          { name: '机构设置', link: 'SchoolContent?pageType=2&category=zzjg&type=xxgk&haveContent=true' },
          { name: '学校标识', link: 'SchoolContent?pageType=2&category=xxbs&type=xxgk&haveContent=true' },
          { name: '菁菁校园', link: 'SchoolContent?pageType=1&category=qqxy&type=xxgk' },
            // ... 其他子菜单项
        ]
    },
    
    {
        name: '校园新闻',
        link: 'SchoolContent',
        children: [
            { name: '校务公开', link: 'SchoolContent?pageType=1&category=xwgk&type=xyxw' },
            // ... 其他子菜单项
        ]
    },{
      name: '党建领航',
      link: 'SchoolContent',
      children: [
          { name: '党建领航六个“1+1”', link: 'SchoolContent?pageType=1&category=yxyp&type=djgz' },
          { name: '党委理论学习中心组学习', link: 'SchoolContent?pageType=1&category=dwllxx&type=djgz' },
          { name: '主题党日活动', link: 'SchoolContent?pageType=1&category=ztdr&type=djgz' },
          { name: '党员示范岗', link: 'SchoolContent?pageType=1&category=dysfg&type=djgz' },
          { name: '党务公开', link: 'SchoolContent?pageType=1&category=dwgk&type=djgz' }, 
          // ... 其他子菜单项
      ]
   } ,
    {
        name: '德育之窗',
        link: 'SchoolContent',
        children: [
          { name: '德育活动', link: 'SchoolContent?pageType=3&category=dyhd&type=yzzc' },
          { name: '学生组织', link: 'SchoolContent?pageType=2&category=xszz&type=yzzc&haveContent=true' },
          { name: '心理健康', link: 'SchoolContent?pageType=1&category=xljk&type=yzzc' },
          { name: '家校共育', link: 'SchoolContent?pageType=3&category=xxgy&type=yzzc' },
          { name: '年级组活动', link: 'SchoolContent?pageType=1&category=njzhd&type=yzzc' },
          { name: '平安校园', link: 'SchoolContent?pageType=1&category=paxy&type=yzzc' },
          // ... 其他子菜单项
      ]
    },
    {
        name: '课程教学',
        link: 'SchoolContent',
        children: [
            { name: '教学常规', link: 'SchoolContent?pageType=1&category=jxcg&type=kcjx' },
            { name: '课程研究', link: 'SchoolContent?pageType=1&category=kcyj&type=kcjx' },
            { name: '拔尖创新', link: 'SchoolContent?pageType=1&category=pjcx&type=kcjx' },
            { name: '三大书院', link: 'SchoolContent?pageType=3&category=sdsy&type=kcjx' },
            { name: '学生社团', link: 'SchoolContent?pageType=3&category=xsst&type=kcjx' },
            { name: '学科活动', link: 'SchoolContent?pageType=3&category=xkhd&type=kcjx' },
            // ... 其他子菜单项
        ]
    },
    {
        name: '教育科学研究',
        link: 'SchoolContent',
        children: [
            { name: '名师工作室', link: 'SchoolContent?pageType=3&category=msgzs&type=jxkxyj' },
            { name: '高考前沿', link: 'SchoolContent?pageType=3&category=gkqy&type=jxkxyj' },
            { name: '减负提质', link: 'SchoolContent?pageType=1&category=jftz&type=jxkxyj' },
            { name: '集团化合作办学', link: 'SchoolContent?pageType=3&category=jthhzbx&type=jxkxyj' },
            { name: '名师讲坛', link: 'SchoolContent?pageType=1&category=msjt&type=jxkxyj' },
            // ... 其他子菜单项
        ]
    },
    {
        name: '教师风采',
        link: 'SchoolContent',
        children: [
            { name: '教师队伍', link: 'SchoolContent?pageType=2&category=jsdw&type=jsfc&haveContent=true' },
            { name: '历届名师介绍', link: 'SchoolContent?pageType=3&category=ljmsjs&type=jsfc' },
            { name: '评先评优、师德楷模', link: 'SchoolContent?pageType=3&category=pxpysdkm&type=jsfc' },
            // ... 其他子菜单项
        ]
    },
    {
        name: '招生资讯',
        link: 'SchoolContent',
        children: [
          
            // ... 其他子菜单项
        ]
    },
    {
        name: '后勤保障',
        link: 'SchoolContent',
        children: [
            { name: '食品食堂管理', link: 'SchoolContent?pageType=1&category=spstgl&type=hqbz' },
            { name: '基建维修', link: 'SchoolContent?pageType=1&category=jjwx&type=hqbz' },
            { name: '资产管理', link: 'SchoolContent?pageType=1&category=zcgl&type=hqbz' },
            { name: '招标投标', link: 'SchoolContent?pageType=1&category=zbtb&type=hqbz' },
            // ... 其他子菜单项
        ]
    },
    {
        name: '校友天地',
        link: 'SchoolContent',
        children: [
            { name: '校友会', link: 'SchoolFriendClub?pageType=1&category=xyh&type=xytd' },
            { name: '回忆', link: 'SchoolContent?pageType=1&category=hy&type=xytd' },
            { name: '捐赠项目', link: 'SchoolContent?pageType=1&category=jzxm&type=xytd' },
            { name: '校友动态', link: 'SchoolContent?pageType=3&category=xydt&type=xytd' },
            { name: '校友风采', link: 'SchoolContent?pageType=3&category=xyfc&type=xytd' },
            { name: '校友通讯', link: 'SchoolContent?pageType=1&category=xytx&type=xytd' },
            // ... 其他子菜单项
        ]
    },
    // ... 其他菜单项
];
export {
    primaryRoutes,
    pMenuItems
}